<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>app下载</title>
    <link rel="stylesheet" href="./css/index.css" />
    <style></style>
</head>

<body>
    <div id="div">
        <div class="down-logo-box">
            <img class="down-logo" src="./images/logo.png" />
            <div class="down-logo-text">衡信云储</div>
        </div>
        <div class="downlaod-tips">点击下载按钮立即下载APP</div>
        <div class="download_banner_box">
            <img src="./images/download_banner.png" />
        </div>
        <div class="download-btn" onclick="downloadAndroid()"><img src="./images/android.png" /> 立即下载</div>
        <div class="download-btn" onclick="downloadIos()"><img src="./images/apple.png" /> 立即下载</div>
    </div>
    <div id="weixin-tips" class="weixin-tips">
        <img class="weixin-tips-img" src=""
            width="25" />
        <div id="weixin-tips-text" class="weixin-tips-text" style="color: white">请在菜单中选择在浏览器中打开，以完成下载</div>
        <!-- <button onclick="hiden()">OK</button> -->
    </div>

    <script>
        document.getElementById("weixin-tips").style.display = "none";
        is_weixin();

        function is_weixin() {
            var ua = window.navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == "micromessenger") {
                console.log("weixin");
                document.getElementById("weixin-tips").style.display = "block";
                // document.getElementById("div").removeAttribute("onclick")
            } else {
                console.log("不是微信浏览器");
                document.getElementById("weixin-tips").style.display = "none";
            }
        }

        function downloadAndroid() {
            window.open("./hengXinCloud.apk");
        }

        function downloadIos() {}
    </script>
</body>

</html>